package data;

public class MyDate {
private int year;
private int month;
private int day;
public   MyDate(int y,int m,int d){year=y;month=m;day=d;}
public void resetDate(int y,int m,int d,MyDate on){on.year=y;on.month=m;on.day=d;}
public void addDate(int up)
{
}
public void printDate(MyDate on){System.out.printf("%d-%d-%d\n",year,month,day);}


public static void main(String[] args){
	MyDate on=new MyDate(1996,12,8);
	on.printDate(on);
	on.resetDate(2016,10,8,on);
	on.printDate(on);
}
}
